package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.meta.MetaObject;
import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author DLY
 * @since 2024-01-30 15:15:22
 */
@Data
@TableName("blog_comment")
@Schema(name = "Comment", description = "评论")
@EqualsAndHashCode(callSuper = true)
public class Comment extends MetaObject {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "文章id")
    @TableField("content_id")
    private String contentId;

    @Schema(description = "父节点")
    @TableField("parent_id")
    private String parentId;

    @Schema(description = "评论内容")
    @TableField("comment")
    private String comment;

    @Schema(description = "回复人")
    @TableField("reply_id")
    private String replyId;

    @Schema(description = "图片列表")
    @TableField("images")
    private String images;

    @Schema(description = "点赞次数")
    @TableField("kudos_num")
    private Integer kudosNum;
}
